{foreach name="all" item="all" key="k"}
 <div class="card user_order_card">
  <div class="card-header"><span><span class="iconfont icon-huiyuan1"></span> {$all['sponsor']}</span>
  <a>
  	 {if condition="$all['order_status'] eq 1"}待付款
  	 {elseif condition="$all['order_status'] eq 2"/}待参与
  	 {elseif condition="$all['order_status'] eq 3"/}已完成
  	 {/if}
  </a>
  </div>
  <div class="card-content">
  <a href="{:U('orderDetail',array('order_id'=>$all['id']))}">
    <div class="list-block media-list">
      <ul>
        <li class="item-content">
          <div class="item-media">
            <img src="{$all['activity_img']}" style="width:100px;" />
          </div>
          <div class="item-inner">
            <div class="item-title-row">
              <div class="item-title">{$all['activity_name']}</div>
            </div>
            <p style="font-size:12px;margin:0 0;" class="color-gray">{$all['area']}&nbsp;&nbsp;&nbsp;{$all['signup_number']}人已报名</p>
            <p style="font-size:12px;margin:0 0;" class="color-gray">{$all['start_time']|date="Y-m-d",###} 至 {$all['end_time']|date="Y-m-d",###}</p>
          </div>
        </li>
      </ul>
    </div>
   </a> 
  </div>
  <div class="card-footer"><span>￥<font>{$all['amount']}</font></span>
  <span>
  {if condition="$all['order_status'] eq 1"} 
  <form action="{:U('Wxpay/js_api_call')}" method="post" style="display: inline-block;">
  	<input type="hidden" name="order_sn" value="{$all['order_sn']}" />	
  	<button type="submit"  style="display: inline-block;" class="button button-fill" >去付款</button>
  </form>
  <a style="display: inline-block;" href="{:U('cancelOrder',array('order_id'=>$all['id']))}" class="button button-fill" >取消订单</a>
  {elseif condition="$all['order_status'] eq 2" /}
  <a style="display: inline-block;" href="{:U('electronics',array('order_id'=>$all['id']))}" class="button button-fill" >查看电子票</a>
  {elseif condition="$all['order_status'] eq 3" /}
  <a style="display: inline-block;" href="{:U('Users/orderDetail',array('order_id'=>$all['id']))}" class="button button-fill">已完成</a>
  {/if}
  </span>
  </div>
</div>
{/foreach}